import json
import xml.dom.minidom
from xml.dom import minidom

import xml.etree.ElementTree as ET

from jmeter_api.basics.config.elements import BasicConfig
from jmeter_api.basics.listener.elements import ResultCollector
from jmeter_api.basics.sampler.elements import UserDefinedVariables
from jmeter_api.configs import HTTPCookieManager
from jmeter_api.configs.http_cache_manager.elements import HTTPCacheManager
from jmeter_api.configs.http_cookie_manager.elements import Cookie
from jmeter_api.configs.user_defined_variables.elements import Argument, UserDefineVariables
from jmeter_api.listeners import ViewResultsTree, BackendListener
from jmeter_api.pre_processors import JSR223PreProcessor
from jmeter_api.timers.constant_throughput_timer.elements import ConstantThroughputTimer
from jmeter_api.timers.constant_timer.elements import ConstantTimer
from jmeter_api.non_test_elements.test_plan.elements import *
from jmeter_api.controllers.loop_controller.elements import LoopController
from jmeter_api.test_fragment.elements import TestFragment
from jmeter_api.controllers.module_controller.elements import ModuleController
from jmeter_api.samplers.http_request.elements import HttpRequest
from jmeter_api.samplers.jsr223.elements import JSR223
from jmeter_api.thread_groups.common_thread_group.elements import CommonThreadGroup